package com.xmu.prcs.util;


/**
 * 字典类，项目中用到的常量
 * @author: frequent
 * @version 1.0,2012-3-19
 */
public class DictionaryUtil {
	
	public final static int SEX_FEMALE = 1; //性别，男
	public final static int SEX_MALE = 2; //性别，女
	public final static int SEX_SECRET = 0; //性别，保密
	
	public final static int USER_STATUS_NORMAL = 1;//正常
	public final static int USER_STATUS_FREEZE = 2;//用户被冻结了
	
	public final static int ROLE_LEVEL_COMMON = 1;//普通用户
	public final static int ROLE_LEVEL_FORUM_ADMIN = 2;//论坛版主
	public final static int ROLE_LEVEL_ADMINISTOR = 3;//系统管理员
	
	public final static String UPLOAD_FILE_PATH = "upload\\photo\\";//头像上传路径
	public final static String UPLOAD_FILE_PATH_BACKUP = "d:\\upload\\photo\\";//头像上传备份路径，开发使用
	public final static String UPLOAD_PLANT_IMAGE_PATH = "upload\\plant\\";//植物图像上传路径
	public final static String UPLOAD_PLANT_IMAGE_PATH_BACKUP = "d:\\upload\\plant\\";//植物图像上传备份录几个，开发使用
	
	public final static String DEFAULT_PHOTO_PATH = "images/defaultphoto.jpg";//默认头像
	public final static String DERAULT_PLANT_PATH = "images/defaultplant.jpg";//默认植物图像
	
	public final static String DEFAULT_PHOTO = "default";
	
	public final static int LOGIN_SUCCESS = 1; //登录成功
	public final static int LOGIN_WRONG_PASSWORD = 2; //密码错误
	public final static int LOGIN_NO_NAME = 3; //系统中不存在此用户名
	
	public final static int EDIT_OR_ADD_ADD = 1;//判断页面为新增或修改——新增
	public final static int EDIT_OR_ADD_EDIT = 2;//修改
	
	
}
